package com.elong.qadev.model;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
/**
 * 
* @ClassName: MyAuthenticator
* @Description: TODO(用户名密码存放类)
* @author kangchen
* @date 2015年9月29日
*
 */
public class MyAuthenticator extends Authenticator {
	private String username = null;
	private String password = null;

	public MyAuthenticator() {
	};

	public MyAuthenticator(String username, String password) {
		this.username = username;
		this.password = password;
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(username, password);
	}

}